<?php
require 'autoload.php';
use Vod\VodUploadClient;
use Vod\Model\VodUploadRequest;
$client = new VodUploadClient("AKIDUs2xe6BJPK2XnoxkLgneHf8PVMxNIwtb", "cz82tWyBCzjGbpqcFg0ve8SYS7hEcrwf");
// var_dump($client);die;
$req = new VodUploadRequest();
$req->MediaFilePath = "Wildlife.wmv";
// $req->CoverFilePath = "/data/videos/Wildlife-Cover.png";
// var_dump($req);die;
try {
	$rsp = $client->upload("ap-guangzhou", $req);
	var_dump(321);die;
	// echo $rsp;die;
	echo "FileId -> ". $rsp->FileId . "\n";
	echo "MediaUrl -> ". $rsp->MediaUrl . "\n";
} catch (Exception $e) {
	// 处理上传异常
	// var_dump(123);die;
	echo $e;
}

var_dump($req);
// var_dump($client);die;